From 7fdd501f11f56e7a4a0b8b9feac5d182f9ee3937 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 31 Mar 2009 11:40:28 +0100 Subject: [PATCH] xend: Allow user to specify vslots 0 - 1f for static pass-through The current parser only accepts vslots 0 - f (hex), that is, only slots that have one digit. This is an omission as two digit slots with a leading 0 or 1 are also valid, representing the full range of slots 0 - 1f. Thanks to Dexuan Cui for spotting this problem. Cc: Dexuan Cui Signed-off-by: Simon Horman --- tools/python/xen/xm/create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/xen/xm/create.py b/tools/python/xen/xm/create.py index 8ad0fe6dfd..f5b505270b 100644 --- a/tools/python/xen/xm/create.py +++ b/tools/python/xen/xm/create.py @@ -1057,7 +1057,7 @@ def preprocess_pci(vals): r"(?P[0-9a-fA-F]{1,2})[:,]" + \ r"(?P[0-9a-fA-F]{1,2})[.,]" + \ r"(?P[0-7])" + \ - r"(@(?P[0-9a-fA-F]))?" + \ + r"(@(?P[01]?[0-9a-fA-F]))?" + \ r"(,(?P.*))?$", \ pci_dev_str) if pci_match!=None: -- 2.30.2